import {commonIp, http} from '../../Api/http'

let ip =  commonIp + '/logistics';
// let ip =  'http://192.168.3.5:1120/bcxt';

//车辆列表
export const  postLsCarWhiteFindLsCarWhite = (data) => {
    const url = ip + '/ls-car-white/findLsCarWhite';
    return http(url, "post", data)
}
//添加车辆
export const  putLsCarWhiteInsertLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/insertLsCarWhite';
    return http(url, "put", data)
}
//白名单回显
export const  getLsCarWhiteEcho= (data) => {
    const url = ip + '/ls-car-white/echo';
    return http(url, "get", data)
}
//白名单编辑
export const  postLsCarWhiteUpdateLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/updateLsCarWhite';
    return http(url, "post", data)
}
//白名单删除
export const  getLsCarWhiteDeleteLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/deleteLsCarWhite';
    return http(url, "get", data)
}


//通行记录
export const  postLsCarPassageFindLsCarPassage= (data) => {
    const url = ip + '/ls-car-passage/findLsCarPassage';
    return http(url, "post", data)
}
//通行记录
export const  getLsCarPassageOverviewGuard= (data) => {
    const url = ip + '/ls-car-passage/overviewGuard';
    return http(url, "get", data)
}
//获取停车场全局设置
export const  getLsCarPassageGetGlobalGuard= (data) => {
    const url = ip + '/ls-car-passage/getGlobalGuard';
    return http(url, "get", data)
}
//停车场全局设置
export const  postLsCarPassageSetGlobalGuard= (data) => {
    const url = ip + '/ls-car-passage/setGlobalGuard';
    return http(url, "post", data)
}
// 驶入授权
export const  getLsCarWhiteAccreditIn= (data) => {
    const url = ip + '/ls-car-white/accreditIn';
    return http(url, "get", data)
}
// 驶出授权
export const  getLsCarWhiteAccreditOut= (data) => {
    const url = ip + '/ls-car-white/accreditOut';
    return http(url, "get", data)
}
// 临时进出授权 - 列表
export const  postLsCarAccreditFindCarAccredit= (data) => {
    const url = ip + '/ls-car-accredit/findCarAccredit';
    return http(url, "post", data)
}
// 临时进出授权 - 添加
export const  putLsCarAccreditInsertCarAccredit= (data) => {
    const url = ip + '/ls-car-accredit/insertCarAccredit';
    return http(url, "put", data)
}
// 临时进出 - log-列表
export const  getLsCarLogoQueryCarLogo= (data) => {
    const url = ip + '/ls-car-logo/queryCarLogo';
    return http(url, "get", data)
}
// 临时进出 - log-列表 - 发布
export const  getLsCarLogoPublishLogo= (data) => {
    const url = ip + '/ls-car-logo/publishLogo';
    return http(url, "get", data)
}
// 临时进出 - log-列表 - 删除
export const  getLsCarLogoDeleteCarLogo= (data) => {
    const url = ip + '/ls-car-logo/deleteCarLogo';
    return http(url, "get", data)
}
// 临时进出 - log-列表 - 取消发布
export const  getLsCarLogoCancelPublish= (data) => {
    const url = ip + '/ls-car-logo/cancelPublish';
    return http(url, "get", data)
}
// 临时进出 - log-列表 - 添加log
export const  getLsCarLogoAddLogo= (data) => {
    const url = ip + '/ls-car-logo/addLogo';
    return http(url, "get", data)
}
// 开门
export const  getSetGpIo= (data) => {
    const url = ip + '/ls-car-passage/setGpIo';
    return http(url, "get", data)
}
